//
//  HHDotImageView.h
//  XueZhiYun
//
//  Created by chun.chen on 2018/8/10.
//  Copyright © 2018年 Zhihan. All rights reserved.
//  红点view

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface HHDotImageView : UIView

@property (nonatomic, strong) UIImageView *imageView;
@property (nonatomic, strong) UIImageView *dotImgView;

// 点击事件
@property (nonatomic, copy) void(^clickBlock)(HHDotImageView *view);

#pragma mark - system
- (instancetype)initWithImage:(nullable UIImage *)image;

#pragma mark - public

/**
 更新红点偏移

 @param offset 偏移offset，默认实在右上角
 */
- (void) updateDoteOffset:(CGPoint )offset;

@end


NS_ASSUME_NONNULL_END
